package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.MusicBean;
import com.asion.qkan.ui.contract.MusicContract;

/**
 * Created by asion on 16-10-12.
 */

public class MusicPresenter extends MusicContract.Presenter {

    @Override
    public void onStart() {
        super.onStart();
    }

    @Override
    public void setMusicDatas(String url) {
        mModel.getMusicListDatas(url, new MusicContract.OnMusicGetListener() {
            @Override
            public void onMusicSuccess(MusicBean.ResultBean bean) {
                mView.showDataSuccess(bean);
            }

            @Override
            public void onMusicError(Throwable t) {
                mView.showDataError(t);
            }
        });
    }
}
